//
//  FirstSectionTableViewCell.m
//  Tang
//
//  Created by 邓芮 on 15/12/4.
//  Copyright © 2015年 352324497@qq.com. All rights reserved.
//

#import "FirstSectionTableViewCell.h"

@implementation FirstSectionTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.selectionStyle = NO;
        CGFloat x = 10 * KWidth / 414;
        CGFloat headerWidth = 80 * KWidth / 414;
        self.headerImageView = [[UIImageView alloc]initWithFrame:CGRectMake(x, x, headerWidth, headerWidth)];
        self.headerImageView.layer.cornerRadius = headerWidth / 2;
        self.headerImageView.image = [UIImage imageNamed:@"header"];
        self.headerImageView.layer.masksToBounds = YES;
        [self addSubview:self.headerImageView];
        
        CGFloat nameWidth = KWidth - headerWidth - headerWidth / 2 - 3 * x;
        self.name = [[UILabel alloc]initWithFrame:CGRectMake(x * 2 + headerWidth, x, nameWidth, headerWidth)];
//        self.name.backgroundColor = [UIColor redColor];
//        self.name.text = @"开心开心";
        [self addSubview:self.name];
        
//        self.nextImageView = [[UIImageView alloc]initWithFrame:CGRectMake(KWidth - headerWidth / 2, 4 * x, headerWidth / 4, headerWidth / 4)];
//        self.nextImageView.image = [UIImage imageNamed:@"more"];
//        self.nextImageView.userInteractionEnabled = YES;
//        [self addSubview:self.nextImageView];
    }
    return self;
}





@end
